import { History, Location,Route } from 'umi'

export interface ComponentProps {
  history: History;
  location: Location;
  match: any;
  route: Route;
  routes: Route[];
  dispatch: any;
  children: any;
}
export interface Router {
  name?: string,
  path: string,
  component?: string,
  icon?: string,
  routes?: Router[],
  [key: string]: any
}
export type Theme = 'light' | 'dark';

export type Fun = () => void